<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<title>无标题文档</title>
</head>

<body>
<script type="text/javascript">
try{
	var num=1/0;
	if(num=="Infinity"){
		throw new Error("除数不可以为0");
	}
}catch(exception){
	alert(exception.message);
}
</script>

</body>
</html>
